'''
int=1000
index=1
while index<=20:
    int=int/2
    index=index+1
print(int)
'''
import os
print(os.getcwd())
f2=os.open("1.txt",os.O_CREAT)
os.close(f2)
f1=open('1.txt','r+')

'''
row=1
while 0<row<=9:
    col=1
    while col<row+1:
         stringtemp=("{}*{}={}  ".format(row,col,row*col))
         f1.write(stringtemp)
         col=col+1
    row=row+1
    stringtemp=('\n')
    f1.write(stringtemp)

f1.close()
'''
def qwer():
    strtemp1=''
    row=1
    while row<=9:
        col=1
        while col<row+1:
            #print('{}*{}={} '.format(row, col, row * col),end='  ')
            strtemp1=strtemp1+'{}*{}={} '.format(row, col, row * col)
            col=col+1
        row=row+1
        strtemp1 = strtemp1 + '\n'

    return strtemp1

for li in f1.readlines():
    f1.truncate(0)
#os.remove("1.txt")
stringtemp=(str(qwer()))
print(stringtemp)
f1.write(stringtemp)
f1.close()